 			<?php $form = $this->beginWidget('lib.widgets.CActiveFormAdv')?>
			<?php echo $form->hiddenField($model,'web_id',array(
				'value'=>CHtml::value($provider,'web.id'),
			));?>
			<?php echo $form->hiddenField($model,'worker_id',array(
				'value'=>CHtml::value($provider,'id'),
			));?>
			<?php echo $form->hiddenField($model,'uid',array(
				'value'=>Yii::app()->adminUser->id,
			));?>
			<?php echo $form->hiddenField($model,'worker_type',array(
				'value'=>Yii::app()->adminUser->role,
			));?>
 			<div class="bh-pj-gsjs bh-ly-jj-borderBD bh-padB30">
                	<table class="bh-ly-xf-register" width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr height="50">
                        <td width="14%" class="bh-textRt">标&nbsp;&nbsp;题：</td>
                        <td width="86%">
                        	<?php echo $form->textField($model,'title',array(
									'class'=>'bh-input-long bh-ly-jj-massagetx bh-Border_2'
								))?>
							<?php echo $form->error($model, 'title')?>
                        </td>
                      </tr>
                      <tr height="180">
                        <td class="bh-textRt" valign="top">留&nbsp;&nbsp;言：</td>
                        <td>
                        	<?php echo $form->textArea($model,'profile.content',array(
                        		'class'=>'bh-input-long bh-ly-jj-massagetrea bh-Border_2',
                        	));?>
                        	<?php echo $form->error($model, 'profile.content')?>
                        </td>
                      </tr>
                      <tr height="45">
                        <td class="bh-textRt">验证码：</td>
                        <td>
                        	<?php echo $form->textField($model,'verifyCode',array(
									'class'=>'bh-ly-jj-massagetx bh-input-small bh-mR10'
								))?>
	                        <?php $this->widget('CCaptcha', array(
	                        		'captchaAction' => '/misc/captcha',
                            		'showRefreshButton' => false,
                            		'clickableImage'=> true,
                          			'imageOptions'=>array(
											'alt'=>'点击换图',
											'title'=>'点击换图',
											'style'=>'cursor:pointer',
									 		'id' => 'imgCCaptcha',
		 									 	),
		                            	)
		                            );
		                            Yii::app()->clientScript->registerScript('clickCCaptcha','$(document).ready(function(){$("#imgCCaptcha").click()})');
                            ?>
	                        <a id="seeno">看不清 换一张</a>
	                        <script>
								$("#seeno").click(function(){
									$("#imgCCaptcha").click();
								});
							</script>
							<?php echo $form->error($model, 'verifyCode')?>
                        </td>
                      </tr>
                      <tr height="50">
                        <td></td>
                        <td colspan="2">
                        <?php echo CHtml::submitButton('提交',array(
                        		'class'=>'bh-lr-btn',
                        ));?></td>
                      </tr>
                    </table>
              </div>
             <?php $this->endWidget()?>
<script>
uid = '<?php echo Yii::app()->adminUser->id?>';
if(!uid) {
	alert('请先登录在进行留言！');
}
</script>